package com.mtons.mblog.modules.entity;

import lombok.Data;

import java.io.Serializable;

import javax.persistence.*;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * @author 小神灯的火焰
 * 学习内容类型
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
@Entity
@Table(name = "learn_content_type")
public class LearnContentType implements Serializable {

	/**
	 * null
	 * default value: null
	 */
	@Id
	@Column(name = "id", nullable = false, length = 32)
	private String id;

	/**
	 * 内容集合名称
	 * default value: null
	 */
	@Column(name = "name", nullable = true, length = 100)
	private String name;

	/**
	 * 创建时间
	 * default value: null
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@Column(name = "create_time", nullable = true)
	private java.util.Date createTime;

	/**
	 * 创建用户
	 * default value: null
	 */
	@Column(name = "create_user", nullable = true, length = 32)
	private String createUser;

	/**
	 * 更新时间
	 * default value: null
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@Column(name = "update_time", nullable = true)
	private java.util.Date updateTime;

	/**
	 * 更新用户id
	 * default value: null
	 */
	@Column(name = "update_user", nullable = true, length = 32)
	private String updateUser;
}
